export default {
  bind(el, binding, vnode) {
    const _ops = binding.value,
          _c = el.getElementsByClassName(_ops.className);
          // 聚焦
    _c[_ops.curIndex].className += ` ${_ops.currentClassName} `;
  },
  // 插入页面时
  inserted(el, binding, vnode) {},
  update(el, binding, vnode) {
    const _opts = binding.value,
      _oOpts = binding.oldValue,
      _c = el.getElementsByClassName(_opts.className);

    _c[_oOpts.curIndex].className = `${_oOpts.className}`
    _c[_opts.curIndex].className += ` ${_opts.currentClassName}`;
  },
};